<?php

namespace admin\controllers;

use app\models\Gift;
use admin\components\BaseAuthController;

class GiftController extends BaseAuthController{

    public $name = '广告劵管理';

    public function actionIndex($status = Gift::STATUS_NO_USE){
        $model = new Gift();
        $dataProvider = $model->search(['status' => $status]);
        return $this->render(compact('dataProvider'));
    }
}
